<extend  name="Public:base" />
<block name="title">首页</block> 
<block name="style">
    <style>
        .table th{width: 140px;text-align:right;padding-right:20px;}
        .table td{width: auto;}  

    </style>
</block>
<block name="content"> 
    <ol class="breadcrumb">
      <li><a href="__MODULE__/index">起始页</a></li> 
      <li class="active">文章分类</li>
    </ol> 
    <div id="tabsContens" class="tab-content">
        <!-- 基本配置 --> 
        <div class="head-box clearfix" style="padding:10px 0;background:#f3f3f3;">
                <input type="hidden" name="type" value="links" />
                <div class="col-sm-6">
                    <a href="__CONTROLLER__/add_classify" class="btn btn-info">新增</a> 
                </div>
                <div class="col-sm-6 form-inline"> 
                    <div class="input-group">
                        <input type="text" class="form-control" placeholder="关键词" >
                    </div>
                    <button class="btn btn-info" >搜索</button> 
                </div> 
        </div>
        <div class="panel">
            <div class="panel-header">

            </div>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th style="width:40px;">#</th>
                    <th>分类名称</th> 
                    <th>上级</th>
                    <th>简述</th>
                    <th style="width:50px;">状态</th>
                    <th>创建时间</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
	                <foreach name="info.list" item="val">
						<tr data-id="{$val.classify_id}">
		                    <td>{$val.classify_id}</td>
                            <td>{$val.classify_name}</td>
                            <td>{$val.pid}</td>
		                    <td>{$val.desc}</td>
		                    <td><span class="btn btn-{$val['status']==1?'info':'danger'}">{$val['status']==1?'启用':'禁用'}</span></td>
		                    <td>{$val.create_time|date="Y-m-d H:i:s",###}</td>
		                    <td>
		                        <a href="__CONTROLLER__/add_classify?id={$val.classify_id}" class="btn btn-info">编辑</a>
		                        <a href="" class="btn btn-danger">删除</a>
		                    </td>
		                </tr>	                
	            	</foreach>
                </tbody>
            </table>
        </div>
        
    </div>  
</block>
<block name="script">
<script>
     

</script>
</block>



<